package org.tim.init;

import org.springframework.beans.factory.annotation.Autowired;
import org.tim.common.config.TimConfig;
import org.tio.server.ServerTioConfig;

public class UseQueueSendHandler implements TimInitializeHandler {
    @Autowired
    private TimConfig timConfig;

    @Override
    public void initialize(ServerTioConfig serverTioConfig) {
        serverTioConfig.setUseQueueSend(timConfig.isUseQueueSend());
    }
}
